import request from '@/utils/request'

export function getList() {
  return request({
    url: '/role/list',
    method: 'post'
  })
}

export function add(data) {
  return request({
    url: '/role/add',
    method: 'post',
    data
  })
}

export function update(data) {
  return request({
    url: '/role/update',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/role/delete',
    method: 'post',
    data
  })
}
